From: Bartosz Dziewoński Date: Wed, 1 Aug 2018 18:33:02 +0000 (+0200) Subject: Move generic HTMLSizeFilterField styles from newpages.less X-Git-Tag: 1.34.0-rc.0~4593^2 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=ae31e21037928a82741e5848b00a6f91c51ac919;p=lhc%2Fweb%2Fwiklou.git Move generic HTMLSizeFilterField styles from newpages.less These styles should apply to all OOUI HTMLForms (and they already were accidentally being applied to the form on Special:ProtectedPages). Move them to mediawiki.htmlform.ooui.styles.less. Change-Id: Ie51fbbd997648495779c822c421bbfb4a3ea74c4 --- diff --git a/resources/src/mediawiki.htmlform.ooui.styles.less b/resources/src/mediawiki.htmlform.ooui.styles.less index 0b56df1b00..a156e8883a 100644 --- a/resources/src/mediawiki.htmlform.ooui.styles.less +++ b/resources/src/mediawiki.htmlform.ooui.styles.less @@ -24,6 +24,11 @@ width: 100%; } + // Default OOUI styles produce a larger margin here + .mw-htmlform-field-HTMLSizeFilterField { + margin-top: @ooui-spacing-medium; + } + .mw-htmlform-matrix { border-spacing: 0 2px; diff --git a/resources/src/mediawiki.special/newpages.less b/resources/src/mediawiki.special/newpages.less index bac0846c90..835cab8b38 100644 --- a/resources/src/mediawiki.special/newpages.less +++ b/resources/src/mediawiki.special/newpages.less @@ -9,7 +9,6 @@ @ooui-spacing-medium: 12 / @ooui-font-size-browser / @ooui-font-size-base; // equals `0.8571429em`≈`12px` @ooui-spacing-large: 16 / @ooui-font-size-browser / @ooui-font-size-base; // equals `1.1428571em`≈`16px` -.mw-htmlform-ooui .mw-htmlform-field-HTMLSizeFilterField, .mw-htmlform-ooui .mw-htmlform-submit-buttons + div { margin-top: @ooui-spacing-medium; }